package com.haozi.security.config;

import org.springframework.beans.factory.annotation.Value;

/**
 * @author zyh
 * @version 1.0
 * @date 2022/11/5 3:51 下午
 */
public class SignConfig {

    public Long getExpireTime() {
        return this.expireTime * 60L;
    }

    public void setExpireTime(Integer expireTime) {
        this.expireTime = expireTime;
    }

    private String secret;

    private String charset;

    /**
     * 过期时间
     */
    @Value("${expireTime:15}")
    private Integer expireTime;

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }
}
